# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-shell-extensions
pkgver=3.36.2
pkgrel=0
pkgdesc="A collection of extensions for GNOME Shell"
url="https://wiki.gnome.org/Projects/GnomeShell/Extensions"
arch="noarch"
license="GPL-2.0-or-later"
makedepends="meson sassc mozjs60-dev gettext-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-shell-extensions/${pkgver%.*}/gnome-shell-extensions-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Dextension_set=all \
		-Dclassic_mode=true \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="0adf7ff030d18edb0c4e787fc097bbdda3eb4f10004857dec7a8339c6f2092e58195df409139d034ccc40027186a0309e5a06668d62c26d40bc80c38f8604ee1  gnome-shell-extensions-3.36.2.tar.xz"
